﻿/*
 * zhoujiliang02 创建于 2021/8/17 9:10:26
 */

using System;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace VisionCloud.Core.Model.Ms
{
    /// <summary>
    /// 项目编辑记录日志
    /// </summary>
    [Table("MsProjectEditLog")]
    public class MsProjectEditLog : BaseEntity
    {
        /// <summary>
        /// 唯一键
        /// </summary>
        [Key]
        public Guid EditLogId { set; get; }

        /// <summary>
        /// 项目Id
        /// </summary>
        public Guid ProjectId { get; set; }

        /// <summary>
        /// 项目名称
        /// </summary>
        public string ProjectName { get; set; }

        /// <summary>
        /// 修改项标签。例如标准库：Classname+Item.Title。用来校验一个项目中只有一个未发布记录
        /// </summary>
        public string Target { set; get; }

        /// <summary>
        /// 编辑类型，枚举MsProjectEditTypeEnum
        /// </summary>
        public string EditType { set; get; }

        /// <summary>
        /// 变更内容
        /// </summary>
        public string ChangeLog { set; get; }

        /// <summary>
        /// 是否发布。标准库修改未发布也记录进来，但不展示
        /// </summary>
        public bool IsPublished { set; get; }

        /// <summary>
        /// 备用
        /// </summary>
        public string Remark { get; set; }
    }
}